package com.javapatterns.state.web;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class UserValidatorServlet extends HttpServlet {

	private static final long serialVersionUID = -8736764758196555491L;

	public void init(ServletConfig config) throws ServletException {
		super.init(config);
		// Write your code here
	}

	public void destroy() {
		// Write your code here
		super.destroy();
	}

	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// Set content-type header before accessing the Writer
		response.setContentType("text/html");
		// Write the data of the response
		PrintWriter out = response.getWriter();
		// Write your code here
		out.close();
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// Set content-type header before accessing the Writer
		response.setContentType("text/html");
		// Write the data of the response
		PrintWriter out = response.getWriter();
		// Write your code here
		out.close();
	}

	public long getLastModified(HttpServletRequest request) {
		// Write your code here
		return -1;
	}

	/**
	 * @link aggregation
	 * @directed
	 */
	private LoginState loginState;
}
